package fanshe;

public class Person {
    private String name;
    private int age;

    public String sex;
    public String s;
    public Integer i;

    public void show() {
        System.out.println(toString());
    }

    public void hh() {
        System.out.println("hhh,public无参方法");
    }

    public void qq(int i) {
        System.out.println("public方法，参数为Int");
    }

    public static void ee() {
        System.out.println("public静态方法");
    }

    private void ww() {
        System.out.println("private方法");
    }

    public Person() {
    }

    private Person(String name) {
        this.name = name;
    }


    public Person(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
